package com.kaishengit.pojo;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Entity
@Table(name="t_chanceitem")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class ChanceItem {
	
	private int id;
	private String chancename;
	private Set<Chance> chanceSet;
	
	
	@Id
	@GeneratedValue
	public int getId() {

		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getChancename() {
		return chancename;
	}

	public void setChancename(String chancename) {
		this.chancename = chancename;
	}
	@OneToMany(mappedBy="chanceitem")
	public Set<Chance> getChanceSet() {
		return chanceSet;
	}
	public void setChanceSet(Set<Chance> chanceSet) {
		this.chanceSet = chanceSet;
	}
	
	
}
